home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Windows Update 2.xpl < prev    next >
Text File  |  2004-03-01  |  2KB  |  52 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="System\Software Installation\Windows Update"
  5. "UIPATH 2"="Virtual Paranoia\Phone Home"
  6. "NAME"="Windows Update Enabled"
  7. "LANGUAGE"="VBScript"
  8. "VERSION"="1.03"
  9. "TEXT 1"="Allow access to Windows Update"
  10. "DESCRIPTION 1"="Windows Update allows you to install updates and bug fixes for Windows which have been discovered after its release. However, if you're a system administrator, you may not want users to be able to access the service, in which case, you can deselect this option."
  11. "AUTHOR"="Xteq Systems (Neil R. Turner)"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"=""
  15. "OSVERSION"="0111111"
  16.  
  17. sP1="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate\"
  18. sP2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
  19. sV1a="DisableWindowsUpdateAccess"
  20. sV1b="NoWindowsUpdate"
  21.  
  22. SUB Plugin_Initialize  
  23.  i=RegReadValue(sP1 & sV1a)
  24.  j=RegReadValue(sp2 & sV1b)
  25.  if IsEmpty(i)=true then i=0
  26.  if IsEmpty(j)=true then j=0
  27.  if i=0 OR j=0 then
  28.   Call SetUIElement(1,true)
  29.  end if
  30. END SUB
  31.  
  32. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=false then
  35.   Call RegWriteValue(sP1 & sV1a,1,2)
  36.   Call RegWriteValue(sp2 & sv1b,1,2)
  37.  else
  38.   s=RegReadValue(sp1 & sv1a)
  39.   if IsEmpty(s)=false then
  40.    Call RegDeleteValue(sp1&sv1a)
  41.   end if
  42.   s=RegReadValue(sp2 & sv1b)
  43.   if IsEmpty(s)=false then
  44.    Call RegDeleteValue(sp2&sv1b)
  45.   end if
  46.  end if
  47. end sub
  48.  
  49. SUB Plugin_Terminate
  50. END SUB
  51.  
  52.